package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author Administrator
 * @date 2021/9/26
 * @description: 用户登陆
 */

@Controller
@RequestMapping("/login")
public class LoginController {

    @RequestMapping("/user")
    public ModelAndView loginAction(){
        ModelAndView  modelAndView = new ModelAndView("login");
        return modelAndView;
    }

    @RequestMapping("/phone")
    public ModelAndView loginForPhone(){
        ModelAndView  modelAndView = new ModelAndView("phone");
        return modelAndView;
    }
}
